import time
from openai import OpenAI
client = OpenAI(base_url="http://10.2.8.77:3000/v1", api_key="sk-93nWYhI8SrnXad5m9932CeBdDeDf4233B21d93D217095f22")

response = client.chat.completions.create(
  model="DeepSeek-R1",
  messages=[
    {"role": "system", "content": "你是一个辩论教练，请为user表述的内容进行全方位智能点评"},
    {"role": "user", "content": "你好"}
  ],
  stream=True
)

for chunk in response:
  if chunk.choices[0].delta.content:
    print(chunk.choices[0].delta.content, end='', flush=True)
    time.sleep(0.1)

